<script>
export default {
  created() {
    const { params, query } = this.$route
    const { path } = params
    if(window.location.href.indexOf('teacher')>=0){
      this.$router.replace({ path: '/login', query })
    } if(window.location.href.indexOf('master')>=0){
      this.$router.replace({ path: '/systemLogin', query })
    }else{
      this.$router.replace({ path: '/login', query })
    }
  },
  render: function(h) {
    return h() // avoid warning message
  }
}
</script>
